<template>
	<view class="content">
		<first-nav></first-nav>
		<video-list :videoList="videoList"></video-list>
		<tab></tab>
	</view>
</template>

<script>
	import tab from '../../components/tab.vue'
	import firstNav from '../../components/first-nav.vue'
	import videoList from '../../components/videoList.vue'
	export default {
		components:{tab,firstNav,videoList},
		data() {
			return {
				videoList:[]
			}
		},
		onLoad() {
            this.getVideos();
		},
		methods: {
            getVideos(){
				uni.request({
					url:"http://localhost:8099/videoList",
					success:(res)=>{
						this.videoList = res.data.datas.list;
						console.log(res,'15315',this.videoList)
					}
				})
			}
		}
	}
</script>

<style>
.content {
	height: 100%;
	width: 100%;
}
</style>
